package com.itaming.lycheeframework.security.exception;

import com.itaming.lycheeframework.api.exception.AbstractApiException;
import com.itaming.lycheeframework.api.result.IErrorCode;
import lombok.Getter;

import java.io.Serial;

/**
 * Security异常抽象类
 *
 * @author A.Ming
 */
@Getter
public abstract class SecurityException extends AbstractApiException {

    @Serial
    private static final long serialVersionUID = 1L;

    public SecurityException(IErrorCode errorCode) {
        super(errorCode);
    }

    public SecurityException(IErrorCode errorCode, String message) {
        super(errorCode, message);
    }

}
